package Jack;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;

/**
 * @Fou Jack of all trades and master of none.
 * @date 2022/1/4 16:48
 */
public class CusBeanPostProcessor implements BeanPostProcessor {
    public Object postProcessorBeforeInitialization(Object bean,String beanName) throws BeansException {
        System.out.println("postProcessorBeforeInitialization被调用！");
        return bean;
    }

    public Object postProcessorAfterInitialization(Object bean,String beanName) throws BeansException {
        System.out.println("postProcessorAfterInitialization被调用！");
        return bean;
    }
}
